home *** CD-ROM | disk | FTP | other *** search
/ The Netherlands - A Compact World / The Netherlands.iso / chapters / 1.2.2.dxr / Internal_30_bouwop.ls < prev    next >
Encoding:
Text File  |  2004-06-10  |  591 b   |  19 lines

  1. on bouwop tophoogte
  2.   spritelijst = []
  3.   tellertje = 20
  4.   repeat while tellertje <= 50
  5.     if the memberNum of sprite tellertje > 0 then
  6.       set the locH of sprite tellertje to 390
  7.       set the locV of sprite tellertje to tophoogte
  8.       spritelijst.addAt(tellertje, tophoogte)
  9.       welkmember = sprite(tellertje).memberNum
  10.       if member(welkmember, 1).type = #field then
  11.         tophoogte = tophoogte + (member(welkmember).lineCount * 14)
  12.       else
  13.         tophoogte = tophoogte + the height of sprite tellertje
  14.       end if
  15.     end if
  16.     tellertje = 1 + tellertje
  17.   end repeat
  18. end
  19.